<template>
  <div class="adminIndex">
    adminIndex
    <el-button  @click="test">Test</el-button>
  </div>
</template>

<script>
export default {
  name: "adminIndex",
  data() {
    return {}
  },
  methods: {
    test() {
      this.$api.main.test()
        .then((res) => {
          console.log("res1:",res.data)
        })
        .catch((err) => {
          console.log("err2:",err)
        })
    }
  },
}
</script>

<style scoped lang="less">
.adminIndex {

}
</style>
